<template>
    <div>sub vite ts</div>
    <div>List view</div>
    <button id="btn_Add" v-on:click="save">新增</button>
</template>

<script setup lang="ts">

const save = () => {
    window.history.pushState({name:'glz',age:19}, '', '/vite-js/list?id=123');
    //window.location.href = '/sub-vite-js/list?id=123';
}

</script>